import javax.xml.bind.annotation.*;
import java.io.Serializable;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "Airline")
@XmlType(propOrder = {"prefix", "name", "iataCode"})
public class Airline implements Serializable {
    private static final long serialVersionUID = 1L;

    private String prefix;
    private String name;
    private String iataCode;
    @XmlAttribute(name = "changeType")
    private String changeType;

    public Airline() {
    }

    public Airline(String prefix, String name, String iataCode, String changeType) {
        this.prefix = prefix;
        this.name = name;
        this.iataCode = iataCode;
        this.changeType = changeType;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIataCode() {
        return iataCode;
    }

    public void setIataCode(String iataCode) {
        this.iataCode = iataCode;
    }

    public String getChangeType() {
        return changeType;
    }

    public void setChangeType(String changeType) {
        this.changeType = changeType;
    }

    @Override
    public String toString() {
        return "Airline{" +
                "prefix='" + prefix + '\'' +
                ", name='" + name + '\'' +
                ", iataCode='" + iataCode + '\'' +
                '}';
    }
}
